package com.example.a24porint;
import android.app.Application;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;

public class ApplicationUtil extends Application {

    private Socket socket=null;
    private DataOutputStream dos = null;
    private DataInputStream dis = null;
    private OutputStream outputStream=null;
    private InputStream inputStream=null;
    public void init() throws IOException, Exception {
        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    socket = new Socket();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }).start();
    }

    public Socket getSocket() {
        return socket;
    }
    public void setSocket(Socket s) {
        this.socket =s;
    }

    public OutputStream getOutputStream() {
        return outputStream;
    }

    public void setOutputStream(OutputStream outputStream) {
        this.outputStream = outputStream;
    }

    public InputStream getInputStream() {
        return inputStream;
    }

    public void setInputStream(InputStream inputStream) {
        this.inputStream = inputStream;
    }
}

